#include "MyStack.h"

void test_1() {
	my::stack<int> s1;
	my::stack<int> s2(10);

	std::cout << s1.empty() << ' ' << s2.empty() << '\n';
	for (int i = 1; i <= 10; ++i) {
		s1.push(i);
	}
	std::cout << s1.size() << '\n';

	while (!s1.empty()) {
		std::cout << s1.top() << ' ';
		s1.pop();
	}

	std::cout << '\n';

	s1.swap(s2);
	std::cout << s1.empty() << ' ' << s2.empty() << std::endl;
}

int main() {
	test_1();
	return 0;
}